Untag

導入

v4.0

カテゴリ

一般

詳細

パラメータ上のタグを 1 つ以上削除します。

スクリプト構文

Untag( [InputObjs], [Level] );

パラメータ

パラメータ タイプ 詳細
InputObjs 文字列 タグ付けを削除するパラメータのリスト

デフォルト値:現在のマーキングおよび選択に基づきます。

Level siTags 削除するタグ。 多数のタグを組み合わせられます。すべてのタグを削除するには siTagAll を使用します。

デフォルト値: siTagAll

JScript の例

/*
        JScript example that shows how to tag and untag parameters
*/
NewScene(null, null);
CreatePrim("Cone", "MeshSurface", null, null);
// Tag the subdivu parameter on the cone.
Tag("cone.polymsh.geom.subdivu", siTag3);
Tag("cone.polymsh.geom.subdivv", siTagAll);
// Display the tags on the cone
var oObj = GetValue("Cone");
var oList = oObj.TaggedParameters( siTag3, true );
for (i=0; i<oList.count;i++)
{
        logmessage (oList.Item(i));
}
// Remove couple of tags
UnTag("cone.polymsh.geom.*", siTag2 + siTag3);
// Display the tags on the cone
var oObj = GetValue("Cone");
var oList = oObj.TaggedParameters( siTagAll, true );
for (i=0; i<oList.count;i++)
{
        logmessage (oList.Item(i));
}
// Now remove all tags
UnTag("cone.polymsh.geom.*", siTagAll);

関連項目

Tag Parameter.Tags ProjectItem.TaggedParameters